Skip to content

perf: Replace getById call with getFistNodeByid#1743

Merged
enjeck merged 3 commits intomainfrom
carl/perf-getbyid
Apr 23, 2026
Merged

perf: Replace getById call with getFistNodeByid#1743
enjeck merged 3 commits intomainfrom
carl/perf-getbyid

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

We only need the first node anyway and getFirstNodeById is quite a bit faster in many cases.

Copy link
Copy Markdown

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it also an issue on user folders?

In any case, it simplifies the code, so let's go!

@CarlSchwan
Copy link
Copy Markdown
Member Author

getFirstNodeById is not available with NC28 :/ I wonder why this app still support 28, it's EOL since a while

@enjeck
Copy link
Copy Markdown
Contributor

enjeck commented Apr 20, 2026

getFirstNodeById is not available with NC28 :/ I wonder why this app still support 28, it's EOL since a while

i don't mind updating for the next release

We only need the first node anyway and getFirstNodeById is quite a bit
faster in many cases.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@enjeck enjeck force-pushed the carl/perf-getbyid branch from a65e280 to f78ba12 Compare April 21, 2026 04:32
@enjeck enjeck requested a review from silverkszlo as a code owner April 21, 2026 04:32
@enjeck enjeck force-pushed the carl/perf-getbyid branch 2 times, most recently from 9072121 to 129078c Compare April 21, 2026 04:44
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
@enjeck enjeck force-pushed the carl/perf-getbyid branch from 129078c to 3928986 Compare April 23, 2026 05:23
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
@enjeck enjeck merged commit edeed9c into main Apr 23, 2026
31 checks passed
@enjeck enjeck deleted the carl/perf-getbyid branch April 23, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants